{layout name="p/base"}
  <div id="page-wrapper">
    <div class="row">
      <div class="col-lg-12">
        <h1>订单管理 <small>订单信息</small></h1>
        <ol class="breadcrumb">
          <li><a href="index.php"><i class="fa fa-dashboard"></i> 管理首页</a></li>
          <li class="active"><i class="fa fa-table"></i> 订单待付款信息列表</li>
        </ol>
        <div class="alert alert-success alert-dismissable">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          这里可以修改、删除订单信息 
        </div>
      </div>
    </div>
    <form class="form-horizontal" role="form" action="/ordercaravan/index1" method="get">
      
      <div class="form-group col-sm-3 input-group">
        <label for="">请输入搜索条件</label>
        <input class="form-control" type="text" placeholder="订单编号/会员信息" name="keyword">
        <label for="">&nbsp;</label>
        <span class="input-group-btn">
          <button class="btn btn-default" type="submit">搜索</button>
        </span>
      </div>
      <div class="clearfix"></div>
    </form>
    <!-- /.row -->
    <div class="row">
      <!-- 选项卡start -->
      <div class="bs-example">
        <!-- 选项卡标题start -->
        <ul class="nav nav-tabs" style="margin-bottom:15px;">
          <li>
            <a href="/ordercaravan/index1">待付款</a>
          </li>
          <li>
            <a href="/ordercaravan/index21">待入住(未准备)</a>
          </li>
          <li class="active">
            <a href="/ordercaravan/index2">待入住(准备好)</a>
          </li>
          <li>
            <a href="/ordercaravan/index3">入住中</a>
          </li>
          <li>
            <a href="/ordercaravan/index4">已完成</a>
          </li>
          <li>
            <a href="/ordercaravan/index5">取消订单</a>
          </li>
        </ul>
        <!-- 选项卡标题end -->
      </div>
      <!-- 选项卡end -->
      <div class="col-lg-12">
        <div class="table-responsive">
          <table class="table table-bordered table-hover table-striped tablesorter">
            <thead>
              <tr>
                <th><div class="checker"><span><input type="checkbox" name=""></span></div></th>
                <th>下单时间</th>
                <th>订单编号</th>
                <th>预约时间</th>
                <th>房车信息</th>
                <th>车主信息</th>
                <th>预约会员信息</th>
                <th>支付信息</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              {volist name='order' id='vo'}
                <tr>
                  <td><div class="checker"><span><input type="checkbox" name=""></span></div></td>
                  <td>{$vo.created_at}</td>
                  <td><a href="/ordercaravan/stayindetail?id={$vo.id}" title="查看订单详情">{$vo.number}</a><br><a href="/ordercaravan/stayindetail?id={$vo.id}"  title="查看订单详情">查看详情</a></td>
                  <td>From：<strong>{$vo.take_car_date}</strong><br>To：<strong>{$vo.leave_car_date}</strong></td>
                  <td>营地泊位：{$vo.camp.name}营地{$vo.park.park_name}{$vo.park.park_number}<br>房车编号：<a href="/caravan/{$vo.caravan.id}/edit">{$vo.caravan.number}</a></td>
                  <td>账号：<a href="/member/{$vo.id}/edit">{$vo.user.mobile}</a><br>姓名：{$vo.user.name}</td>
                  <td>账号：<a href="/member/{$vo.rentuser.id}/edit">{$vo.rentuser.mobile}</a><br>姓名：{$vo.rentuser.name}</td>
                  <td>旅行币：{$vo.used_integral}<br>货币：{$vo.rentuser.currency}{$vo.total_amount}</td>
                  <td><a class="btn btn-primary" href="#">确认入住</a></td>
                </tr>
              {/volist}
            </tbody>
          </table>
        </div> 
      </div>
      <div class="col-sm-12">
        {$order->render()}
      </div>
    </div>
    <!-- /.row -->
  </div><!-- /#page-wrapper -->

